package ex4.logic;
/**
 * 
 * @author Yuvik
 * represents a Ornamental snake 
 */
public class Ornamental extends Snake{

	public Ornamental(int speed){

		this._length=5;
		this._score=0;
		this._speed=speed;
		this._fuzzy=false;
		this._snakeType=Configuration.ORNAMENTAL;
		this._imageName="ORNAMENTALSnake.png";
		this._SnakeTypeName="Ornamental";
	}

	@Override
	public void eat(Food food) {
		food.accept(this);		
	}

	@Override
	public void visit(IceCream food) {
		this._speed=(int) (this._speed*0.5);

	}

	@Override
	public void visit(Insect food) {
		this._length=this._length+2;
		this._score=this._score+20;

	}

	@Override
	public void visit(Meat food) {
		this._speed=this._speed*2;		
	}

}
